chore: use CachePadded in a cached blockstore hot loop#6679
chore: use CachePadded in a cached blockstore hot loop#6679LesnyRumcajs merged 1 commit intomainfrom
CachePadded in a cached blockstore hot loop#6679Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Repository UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughAdded crossbeam-utils dependency and wrapped atomic counter fields in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
... and 15 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Summary of changes
See https://docs.rs/crossbeam/latest/crossbeam/utils/struct.CachePadded.html
I wouldn't assume huge performance gain, but we already have
crossbeam-utilsin the transitive dependencies.Changes introduced in this pull request:
AtomicUsizeinCachePaddedto avoid invalidating cache lines on every metric update.Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit